package com.stdspringboot.mapper;

import com.stdspringboot.entity.Goods;
import com.stdspringboot.vo.GoodsVO;
import com.stdspringboot.vo.LeaveVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * GoodsDAO继承基类
 */
@Mapper
public interface IGoodsDAO extends MyBatisBaseDao<Goods, Integer> {

    /**
     * 根据名称模糊查询，根据价格最小值、最大值进行查询
     * @param goodsVO
     * @return
     */
    public List<Goods> query(GoodsVO goodsVO);

    /**
     * 伪删除，将del字段修改成1
     * @param id
     * @return
     */
    public int deleteById(int id);

    public GoodsVO showById(int id);
}